package org.example.pingpong.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.example.pingpong.domain.dto.UserFormDTO;
import org.example.pingpong.domain.po.User;

/**
 * @author 郑凯
 * @description 针对表【user】的数据库操作Mapper
 * @createDate 2025-02-12 18:53:05
 * @Entity org.example.pingpong.domain.po.User
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    int insert(UserFormDTO user);

    boolean existsByUsername(String username);

    boolean existsByEmail(String email);

}
